package SimpleSelenium.buxfer.po;

import SimpleSelenium.buxfer.elementObject.NavigationMenu;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.ui.WebDriverWait;

/**
 * Created with IntelliJ IDEA.
 * User: dmytro.v.kozlov
 * Date: 7/11/13
 * Time: 4:41 PM
 * To change this template use File | Settings | File Templates.
 */
public class BuxferBasePage {
    protected NavigationMenu mainMenu;


    public WellcomePage logOut(){
        Browser.driver().findElement(By.xpath(".//*[@id='header-account-h']/div")).click();
        Browser.driver().findElement(By.xpath(".//*[@id='header-account-12']")).click();
        return new WellcomePage(Browser.driver());

    }

    public String getPageTitle() {
        return Browser.driver().getTitle();
    }
}
